home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
src
/
X11
/
seyon
/
patch.sco
< prev
next >
Wrap
Text File
|
1995-05-03
|
8KB
|
319 lines
*** orig/Imakefile Sat Jan 29 11:27:40 1994
--- Imakefile Fri Jan 28 22:50:07 1994
***************
*** 8,15 ****
--- 8,18 ----
* be touched at all.
*/
+ CDEBUGFLAGS = -g
DEPLIBS =
LOCAL_LIBRARIES = XawClientLibs
+ DESTDIR=
+ BINDIR=/u/bin
/* SYS_LIBRARIES = -lm */
***************
*** 22,28 ****
SeSubs.o SeSubsX.o SeSupp.o SeTerm.o SeTrans.o SeWin.o \
MultiList.o
! HELPFILE = -DHELPFILE=\"$(LIBDIR)$(PATHSEP)seyon.help\"
/* These are apparently missing from versions of X prior to R5 */
--- 25,31 ----
SeSubs.o SeSubsX.o SeSupp.o SeTerm.o SeTrans.o SeWin.o \
MultiList.o
! HELPFILE = -DHELPFILE=\"/u/lib/seyon/seyon.help\"
/* These are apparently missing from versions of X prior to R5 */
***************
*** 44,50 ****
InstallAppDefaults(Seyon)
InstallAppDefaultsLong(Seyon-co,Seyon-color)
! InstallNonExecFile(seyon.help,$(LIBDIR))
install::
@if [ ! -d $(HOME)/.seyon ]; then mkdir $(HOME)/.seyon; \
--- 47,53 ----
InstallAppDefaults(Seyon)
InstallAppDefaultsLong(Seyon-co,Seyon-color)
! InstallNonExecFile(seyon.help,/u/lib/seyon)
install::
@if [ ! -d $(HOME)/.seyon ]; then mkdir $(HOME)/.seyon; \
*** orig/SeDial.c Sat Jan 29 11:27:41 1994
--- SeDial.c Sat Jan 29 11:23:55 1994
***************
*** 52,57 ****
--- 52,58 ----
ddCurItemIndex;
jmp_buf dial_env;
XfwfMultiListWidget mlw;
+ static Widget dial_button; /* tunnel from TopDial to DismissDirectory call */
struct _ddItem {
char number[LIT_BUF];
***************
*** 82,88 ****
static String disItems[MAX_ENT + 1] = {NULL};
int i;
! XtVaSetValues(widget, XtNsensitive, False);
if (disItems[0] == NULL) {
strcpy(phoneFile, qres.phoneFile);
--- 83,90 ----
static String disItems[MAX_ENT + 1] = {NULL};
int i;
! XtVaSetValues(widget, XtNsensitive, False, NULL, NULL);
! dial_button = widget;
if (disItems[0] == NULL) {
strcpy(phoneFile, qres.phoneFile);
***************
*** 175,182 ****
--- 177,189 ----
int status;
#endif
+ #ifdef SYSV
+ wait(&status);
+ XoAppIgnoreSignal(app_con, SIGCHLD);
+ #else
XoAppIgnoreSignal(app_con, SIGCHLD);
wait(&status);
+ #endif
#if defined(SUNOS_3) || defined(Mips)
switch (status.w_retcode) {
***************
*** 188,194 ****
SeyonMessage("Connected to Remote Host.");
UpdateStatusBox(NULL);
RemoveCurrentItem();
! if (qres.dialDirAutoClose) DismissDirectory((Widget) mlw);
else if (qres.dialDirAutoIconify) IconifyShell((Widget) mlw);
if (ddItems[ddCurItemIndex]->script[0] && !manual_dial) {
--- 195,201 ----
SeyonMessage("Connected to Remote Host.");
UpdateStatusBox(NULL);
RemoveCurrentItem();
! if (qres.dialDirAutoClose) DismissDirectory((Widget) mlw, (XtPointer) dial_button);
else if (qres.dialDirAutoIconify) IconifyShell((Widget) mlw);
if (ddItems[ddCurItemIndex]->script[0] && !manual_dial) {
***************
*** 311,317 ****
Widget widget;
XtPointer clientData;
{
! XtVaSetValues((Widget)clientData, XtNsensitive, True);
XtPopdown(GetShell(widget));
}
--- 318,324 ----
Widget widget;
XtPointer clientData;
{
! XtVaSetValues((Widget)clientData, XtNsensitive, True, NULL, NULL);
XtPopdown(GetShell(widget));
}
*** orig/SePort.c Sat Jan 29 11:27:40 1994
--- SePort.c Fri Jan 28 22:50:24 1994
***************
*** 247,252 ****
--- 247,261 ----
void
set_rtscts()
{
+ #ifdef sco
+ if (qres.rtsctsFlowControl) {
+ pmode.c_cflag &= ~CLOCAL;
+ pmode.c_cflag &= ~ORTSFL;
+ pmode.c_cflag |= RTSFLOW | CTSFLOW;
+ } else {
+ pmode.c_cflag &= ~(ORTSFL | RTSFLOW | CTSFLOW);
+ }
+ #else /* sco */
#ifdef CRTSCTS
if (qres.rtsctsFlowControl) {
pmode.c_cflag |= CRTSCTS;
***************
*** 265,270 ****
--- 274,280 ----
}
#endif
+ #endif /* sco */
if (mfd != -1)
io_set_attr(mfd, &pmode);
***************
*** 678,687 ****
--- 688,703 ----
void
hangup()
{
+ #ifdef sco
+ int old_cflag;
+ #endif
if (mfd == -1)
return;
if (qres.hayesHangup == False) {
+ #ifdef sco
+ old_cflag = pmode.c_cflag;
+ #endif
io_set_speed(&pmode, B0); /* set baud 0 (drop DTR) */
io_set_attr(mfd, &pmode);
***************
*** 688,694 ****
--- 704,718 ----
sleep(1); /* wait a second */
io_set_speed(&pmode, baudrate); /* reset baud rate */
+ #ifdef sco
+ pmode.c_cflag |= CLOCAL;
+ #endif
+ io_set_attr(mfd, &pmode);
+ #ifdef sco
+ pmode.c_cflag = old_cflag;
io_set_attr(mfd, &pmode);
+ #endif
+
}
else { /* use Hayes command */
sleep(2); /* allow for "escape guard time" */
*** orig/Seyon.ad Sat Jan 29 11:27:41 1994
--- Seyon.ad Wed Oct 27 23:16:58 1993
***************
*** 366,368 ****
--- 366,373 ----
* check that you specified the\n\
correct poort to Seyon
+ *modem: /dev/tty2A
+ *defaultBPS: 19200
+ *rtsctsFlowControl: on
+ *dialPrefix: atdp
+ *customization: color
*** orig/Seyon.c Sat Jan 29 11:27:41 1994
--- Seyon.c Sat Jan 29 11:20:51 1994
***************
*** 33,39 ****
#endif
#endif
! #define SEYON_EMU_NAME "seyon-emu"
#include "version.h"
static char version[] = "$Revision: 2.03 $";
--- 33,39 ----
#endif
#endif
! #define SEYON_EMU_NAME "/usr/bin/X11/scoterm"
#include "version.h"
static char version[] = "$Revision: 2.03 $";
***************
*** 87,92 ****
--- 87,94 ----
{"-emulator", "emulator", XrmoptionSepArg, NULL},
{"-noemulator", "noemulator", XrmoptionNoArg, "True"},
{"-nodefargs", "nodefargs", XrmoptionNoArg, "True"},
+ {"-autoclose", "dialDirAutoClose", XrmoptionNoArg, "True"},
+ {"-retries", "dialRepeat", XrmoptionSepArg, NULL},
};
#ifdef SUNOS_3
*** orig/ad2c Sat Jan 29 11:27:41 1994
--- ad2c Wed Oct 13 21:53:05 1993
***************
*** 15,42 ****
#
sed '
- # remove comments
/^!/d
- # remove blanks
/^$/d
- # escape backslash
s/\\/\\\\/g
- # except the line continuation ones
s/\\$//g
- # escape quotes
s/"/\\"/g
- # add leading quote
s/^/"/
- #
: test
/\\$/b slash
s/$/",/
p
d
- #
: slash
n
- # just like "read" only does not add leading quote
/^!/d
/^$/d
s/"/\\"/g
--- 15,33 ----
*** orig/config.h Sat Jan 29 11:27:41 1994
--- config.h Wed Oct 13 22:10:55 1993
***************
*** 30,36 ****
/* #define linux */ /* No need, predefined */
/* #define SVR4 */ /* No need, predefined */
! /* #define _SVR3 */
/* #define BSD386 */
/* #define __386BSD__ */ /* No need, predefined */
/* #define ultrix */ /* No need, predefined */
--- 30,36 ----
/* #define linux */ /* No need, predefined */
/* #define SVR4 */ /* No need, predefined */
! #define _SVR3
/* #define BSD386 */
/* #define __386BSD__ */ /* No need, predefined */
/* #define ultrix */ /* No need, predefined */
***************
*** 39,44 ****
--- 39,45 ----
/* #define AIXV3 */
/* #define SGI */
/* #define SUNOS_3 */ /* Define if running SunOS 3.x */
+ #define SCO
/* Sometimes __svr4__ is defined but not SVR4 */
#if !defined(SVR4) && defined(__svr4__)
***************
*** 74,79 ****
--- 75,87 ----
#define HAVE_STRSTR YES
#define HAVE_STRERROR YES
#define HAVE_USLEEP YES
+ #endif
+
+ #ifdef SCO
+ #undef HAVE_MODEM_CONTROL
+ #define HAVE_MODEM_CONTROL NO
+ #undef HAVE_USLEEP
+ #define HAVE_USLEEP NO
#endif
#ifdef SVR4